@layout('base')

@section('title')
<h1>profile management</h1>
@endsection

@section('content')
<div id="form400">
{{ Form::open() }}
    {{ Form::token() }}
    @if($errors->has())
    <div class="error">
    <ul>
    @foreach($errors->all() as $message)

    <li>{{ $message }}</li>

    @endforeach
    </ul>
    </div>
    @endif

    @if(Session::has('success'))
    <div class="success">
    <ul>
    <li>{{ Session::get('success') }}</li>
    </ul>
    </div>
    @endif
    <!-- password field -->
    <p>{{ Form::label('old_password', 'old password') }}
    {{ Form::password('old_password') }}</p>

    <!-- password field -->
    <p>{{ Form::label('password', 'password') }}
    {{ Form::password('password') }}</p>

    <!-- password field -->
    <p>{{ Form::label('password_confirmation', 'confirmation') }}
    {{ Form::password('password_confirmation') }}</p>

    <!-- submit button -->
    <p>{{ Form::submit('change') }}</p>
{{ Form::close() }}
</div>

@endsection
